package org.chen.model.service.impl;

import org.chen.model.domain.Menu;
import org.chen.model.repository.MenuRepository;
import org.chen.model.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: 陈亮
 * @Date: 2019/3/24 17:49
 */
@Service
public class MenuServiceImpl implements MenuService {

    @Autowired
    private MenuRepository menuRepository;

    @Override
    public List<Menu> findByRoleId(Integer id) {
        return menuRepository.findByRoleId(id);
    }
}
